//
//  EPOSBankEntity.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-03-11 22:17:14
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSBankEntity.h"
@implementation EPOSBankEntity

+(id) getEPOSBankEntityFromDictionary :(NSDictionary *) dic {
    EPOSBankEntity * bankEntity = [[EPOSBankEntity alloc]init] ;
    bankEntity.TransTime = [dic objectForKey:@"TransTime"];
    bankEntity.BankNo = [dic objectForKey:@"BankNo"];
    bankEntity.SaleID = [dic objectForKey:@"SaleID"];
    bankEntity.SettleNum = [dic objectForKey:@"SettleNum"];
    bankEntity.SysTraceNo = [dic objectForKey:@"SysTraceNo"];
    bankEntity.BankName = [dic objectForKey:@"BankName"];
    bankEntity.OriginSysTrace = [dic objectForKey:@"OriginSysTrace"];
    bankEntity.CardNo = [dic objectForKey:@"CardNo"];
    bankEntity.TransType = [dic objectForKey:@"TransType"];
    bankEntity.CasherNo = [dic objectForKey:@"CasherNo"];
    bankEntity.SysRefNo = [dic objectForKey:@"SysRefNo"];
    bankEntity.CashTraceNo = [dic objectForKey:@"CashTraceNo"];
    bankEntity.CardType = [dic objectForKey:@"CardType"];
    bankEntity.TransDate = [dic objectForKey:@"TransDate"];
    bankEntity.Amount = [dic objectForKey:@"Amount"];
    bankEntity.OwnerOrgCode = [dic objectForKey:@"OwnerOrgCode"];
    bankEntity.SaleBankID = [dic objectForKey:@"SaleBankID"];
    bankEntity.CashRegNo = [dic objectForKey:@"CashRegNo"];
    bankEntity.EntityState = [dic objectForKey:@"EntityState"];
    bankEntity.Selected = [dic objectForKey:@"Selected"];
    bankEntity.Auth_Code = [dic objectForKey:@"Auth_Code"];
    bankEntity.MerchantID = [dic objectForKey:@"MerchantID"];
    bankEntity.OriginTrace = [dic objectForKey:@"OriginTrace"];
    bankEntity.OrgCode = [dic objectForKey:@"OrgCode"];
    bankEntity.TerminalID = [dic objectForKey:@"TerminalID"];
    return bankEntity ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSBankEntity :(EPOSBankEntity* ) bankEntity {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:bankEntity.TransTime forKey:@"TransTime"];
    [dic setObject:bankEntity.BankNo forKey:@"BankNo"];
    [dic setObject:bankEntity.SaleID forKey:@"SaleID"];
    [dic setObject:bankEntity.SettleNum forKey:@"SettleNum"];
    [dic setObject:bankEntity.SysTraceNo forKey:@"SysTraceNo"];
    [dic setObject:bankEntity.BankName forKey:@"BankName"];
    [dic setObject:bankEntity.OriginSysTrace forKey:@"OriginSysTrace"];
    [dic setObject:bankEntity.CardNo forKey:@"CardNo"];
    [dic setObject:bankEntity.TransType forKey:@"TransType"];
    [dic setObject:bankEntity.CasherNo forKey:@"CasherNo"];
    [dic setObject:bankEntity.SysRefNo forKey:@"SysRefNo"];
    [dic setObject:bankEntity.CashTraceNo forKey:@"CashTraceNo"];
    [dic setObject:bankEntity.CardType forKey:@"CardType"];
    [dic setObject:bankEntity.TransDate forKey:@"TransDate"];
    [dic setObject:bankEntity.Amount forKey:@"Amount"];
    [dic setObject:bankEntity.OwnerOrgCode forKey:@"OwnerOrgCode"];
    [dic setObject:bankEntity.SaleBankID forKey:@"SaleBankID"];
    [dic setObject:bankEntity.CashRegNo forKey:@"CashRegNo"];
    [dic setObject:bankEntity.EntityState forKey:@"EntityState"];
    [dic setObject:bankEntity.Selected forKey:@"Selected"];
    [dic setObject:bankEntity.Auth_Code forKey:@"Auth_Code"];
    [dic setObject:bankEntity.MerchantID forKey:@"MerchantID"];
    [dic setObject:bankEntity.OriginTrace forKey:@"OriginTrace"];
    [dic setObject:bankEntity.OrgCode forKey:@"OrgCode"];
    [dic setObject:bankEntity.TerminalID forKey:@"TerminalID"];
    return dic ;
}

@end